﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;
using ZLCMS.Business.Util;
using NHibernate;
using ZLCMS.Business;
using DotNet.Common.NHibernateUtil;

namespace ZLCMS.Web.Interface.weixin
{
    public partial class WxNewsMaterialHtmlDoc : UrlRewritePage
    {
        protected WxMaterialNews _newDb;//当前分类

        protected void Page_Load(object sender, EventArgs e)
        {
            using (ISession session = DotNet.Common.NHibernateUtil.SessionFactoryHelper.CreateSession())
            {
                _newDb = session.Get<WxMaterialNews>(int.Parse(Request["uid"]));
            }

            if (_newDb == null)
            {
                _newDb = new WxMaterialNews();
            }
        }
    }
}